﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Workflows.Components.Entities.Distances
{
    public interface IAssociationCalculator
    {
        /// <summary>
        /// return degree of association in the range of [0,1]
        /// 1 indicate two object are the same
        /// 0 indicate two object has no associations
        /// </summary>
        /// <param name="entity1"></param>
        /// <param name="entity2"></param>
        /// <returns></returns>
        double CalculateAssociation(EntityMetaData entity1, EntityMetaData entity2);
    }
}
